package com.spark.lola.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.spark.lola.entity.warehouse.OrderInfo;
import com.spark.lola.support.mybatis.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 采购入库单 Mapper 接口
 * </p>
 *
 * @author dengyejun
 * @since 2020-06-15
 */
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {
    @Override
    IPage<OrderInfo> selectPage(IPage page, @Param(Constants.WRAPPER) Wrapper wrapper);

    OrderInfo selectByOrganAndNo(@Param("storeId")Long storeId,@Param("no")String no);

    int existByOrganAndNo(@Param("storeId")Long storeId,@Param("no")String no);
}
